package com.ragdollcat.thirdaicodegenerate.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * vue工程项目多版本文件记录表 实体类。
 *
 * @author Administrator
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("project_version_ctl")
public class ProjectVersionCtl implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private Long id;

    /**
     * 文件内容
     */
    private String content;

    /**
     * 应用id
     */
    @Column("appId")
    private Long appId;

    /**
     * 应用版本
     */
    @Column("version")
    private Integer version;

    /**
     * 文件名称
     */
    @Column("fileName")
    private String fileName;

    /**
     * 用户提示词
     */
    @Column("message")
    private String message;

    /**
     * 创建用户id
     */
    @Column("userId")
    private Long userId;

    /**
     * 创建时间
     */
    @Column("createTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Column("updateTime")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @Column(value = "isDelete")
    private Integer isDelete;

}
